<?php
/*
 * @Author: lokei
 * @Date: 2022-07-13 21:50:39
 * @LastEditors: lokei
 * @LastEditTime: 2022-11-17 18:30:32
 * @Description: 
 */

namespace App\Models\Topic;

use Illuminate\Database\Eloquent\Model;

class TopicModel extends Model
{
	protected $table = 'topic';

    protected $primaryKey = 'id';

    //

    public $timestamps = false;

	public function comment()
    {
        return $this->hasMany('App\Models\Cms\Comment\CommentModel', 'topic_id', 'id');
    }

}
